package cn.cds.withyou.lib.image;

public class FailReason
{
    private final FailType type;
    private final Throwable cause;

    public FailReason(FailType type, Throwable cause)
    {
        this.type = type;
        this.cause = cause;
    }

    public FailType getType()
    {
        return this.type;
    }

    public Throwable getCause()
    {
        return this.cause;
    }

    public static enum FailType
    {
        IO_ERROR,  DECODING_ERROR,  NETWORK_DENIED,  OUT_OF_MEMORY,  UNKNOWN;
    }
}

